package com.zzz.system.domain.question.dto;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @BelongsProject: oj-project
 * @BelongsPackage: com.zzz.system.domain.question.dto
 * @Author: zhai
 * @CreateTime: 2025-10-18  14:00
 * @Description: TODO 添加问题参数
 * @Version: 1.0
 */
@Data
public class QuestionAddDTO {
    @NotNull(message = "标题不能为空")
    private String title;
    @NotNull(message = "难度不能为空")
    private Integer difficulty;
    @NotNull(message = "时间限制不能为空")
    private Long timeLimit;
    @NotNull(message = "空间限制不能为空")
    private Long spaceLimit;
    @NotNull(message = "题目内容不能为空")
    private String content;
    @NotNull(message = "测试用例不能为空")
    private String questionCase;
    @NotNull(message = "默认代码不能为空")
    private String defaultCode;
    @NotNull(message = "主函数不能为空")
    private String mainFuc;
}
